<%@ page language="java" contentType="text/html; charset=utf-8" %>
<jsp:useBean id="rs" class="weaver.conn.RecordSet" scope="page"/>
<jsp:useBean id="bb" class="weaver.general.BaseBean"/>
<%@ page import="com.alibaba.fastjson.JSONObject" %>
<%@ page import="weaver.general.Util" %>
<%
    JSONObject dataJson = new JSONObject();
    dataJson.put("status", false);
    try {
        String dataid = Util.null2String( request.getParameter( "dataid" ) );
        bb.writeLog(">>>>>dataid="+dataid);
       rs.executeQuery("select custom_code from uf_arc_product_tree where id=?",dataid);
       if(rs.next()){
           dataJson.put("custom_code", rs.getString("custom_code"));
           dataJson.put("status", true);
       }
    }catch (Exception e){
        dataJson.put("status", false);
        bb.writeLog(">>>>>getArcProductTreeCode_Ajax.jsp异常："+e.getMessage());
    }
    out.print( dataJson.toJSONString() );
%>
